package mn.slide.dailynews.model;

import java.util.Date;

import com.j256.ormlite.field.DatabaseField;
import com.j256.ormlite.table.DatabaseTable;

@DatabaseTable(tableName = "tvitem")
public class TvDayItem
{
	public static final String	NAME_FIELD_NAME		= "name";
	public static final String	TVDAY_FIELD_NAME	= "tvDay_id";
	public static final String	START_DATE_FIELD_NAME		= "startDate";
	public static final String	END_DATE_FIELD_NAME		= "endDate";

	@DatabaseField(generatedId = true)
	public int					id;

	@DatabaseField
	public String				name;

	@DatabaseField
	public Date				startDate;

	@DatabaseField
	public Date				endDate;

	@DatabaseField(canBeNull = false, foreign = true)
	public TvDay				tvDay;

	public TvDayItem()
	{

	}

	public TvDayItem(int id)
	{
		this.id = id;
	}

	public TvDayItem(String name, Date startDate, Date endDate, TvDay tvDay)
	{
		this.name = name;
		this.startDate = startDate;
		this.endDate = endDate;
		this.tvDay = tvDay;
	}

	public int getId()
	{
		return id;
	}

	public void setId(int id)
	{
		this.id = id;
	}

	public String getName()
	{
		return name;
	}

	public void setName(String name)
	{
		this.name = name;
	}

	public TvDay getTvDay()
	{
		return tvDay;
	}

	public void setTvDay(TvDay tvDay)
	{
		this.tvDay = tvDay;
	}

	public Date getStartDate()
	{
		return startDate;
	}

	public void setStartDate(Date startDate)
	{
		this.startDate = startDate;
	}

	public Date getEndDate()
	{
		return endDate;
	}

	public void setEndDate(Date endDate)
	{
		this.endDate = endDate;
	}
}